//
//  UIButton+Utils.h
//  DWProduction
//
//  Created by dengWei on 16/9/14.
//  Copyright © 2016年 Dimon.胡亚宾. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, DWButtonEdgeInsetsStyle) {
    DWButtonEdgeInsetsStyleTop, // image在上，label在下
    DWButtonEdgeInsetsStyleLeft, // image在左，label在右
    DWButtonEdgeInsetsStyleBottom, // image在下，label在上
    DWButtonEdgeInsetsStyleRight // image在右，label在左
};

@interface UIButton (Utils)

/**
 *  设置button的titleLabel和imageView的布局样式，及间距
 *
 *  @param style titleLabel和imageView的布局样式
 *  @param space titleLabel和imageView的间距
 */
- (void)layoutButtonWithEdgeInsetsStyle:(DWButtonEdgeInsetsStyle)style
                        imageTitleSpace:(CGFloat)space;

@end
